package ems.dev.easycode.domain.entity;

import java.util.List;

/**
 * @author 狠穿
 * @version 1.0.0
 * @date 2023/5/24
 * @function 实体类对象
 */
public class DomainEntity {

    /**
     * 类名
     */
    private String name;

    /**
     * 作者
     */
    private String author;

    /**
     * 类描述
     */
    private String description;

    /**
     * 包名全路径
     */
    private String packageName;

    /**
     * 实体类的生成位置
     */
    private String location;

    /**
     * 实体类包含的字段
     */
    private List<FieldEntity> fields;

    /**
     * 是否初始化元数据
     */
    private Boolean initMetaData = true;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getAuthor() {
        return author;
    }

    public void setAuthor(String author) {
        this.author = author;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public String getPackageName() {
        return packageName;
    }

    public void setPackageName(String packageName) {
        this.packageName = packageName;
    }

    public String getLocation() {
        return location;
    }

    public void setLocation(String location) {
        this.location = location;
    }

    public List<FieldEntity> getFields() {
        return fields;
    }

    public void setFields(List<FieldEntity> fields) {
        this.fields = fields;
    }

    public Boolean getInitMetaData() {
        return initMetaData;
    }

    public void setInitMetaData(Boolean initMetaData) {
        this.initMetaData = initMetaData;
    }

    @Override
    public String toString() {
        return "DomainEntity{" +
                "name='" + name + '\'' +
                ", author='" + author + '\'' +
                ", description='" + description + '\'' +
                ", packageName='" + packageName + '\'' +
                ", location='" + location + '\'' +
                ", fields=" + fields +
                ", initMetaData=" + initMetaData +
                '}';
    }
}
